package com.example.demo.controll;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author vivi
 * @description
 * @date 2024/5/30
 */
@RestController
@RequestMapping("/user")
public class UserController {
    @RequestMapping("/hi")
    public String sayHi(String name) {
        System.out.println("执行了 sayHai 方法！");
        return "Hi, " + name;
    }
    @RequestMapping("/hello")
    public String SayHello(String name) {
        System.out.println("执行了 sayHelo 方法！");
        return "Hello, " + name;
    }

}


























